import { Notify } from 'quasar'

export default {
  namespaced: true,
  state: {

  },
  mutations: {
    AJAX_NOTIFY_SUCCESS (vuex, s) {
      Notify.create({
        message: '请求成功',
        color: 'positive',
        icon: 'done',
        position: 'top-right',
        timeout: 3000
      })
    },
    AJAX_NOTIFY_SYSTEM_EX () {
      Notify.create({
        message: '系统异常',
        color: 'negative',
        icon: 'error_outline',
        position: 'top-right',
        timeout: 3000
      })
    },
    MSGCODE_BUS_EX (vuex, msg) {
      Notify.create({
        message: msg,
        color: 'negative',
        icon: 'error_outline',
        position: 'top-right',
        timeout: 3000
      })
    },
    MSGCODE_DATA_EX (vuex, msg) {
      Notify.create({
        message: msg,
        color: 'negative',
        icon: 'error_outline',
        position: 'top-right',
        timeout: 3000
      })
    },
    MSGCODE_VALIDATE_EX (vuex, msg) {
      Notify.create({
        message: msg,
        color: 'negative',
        icon: 'error_outline',
        position: 'top-right',
        timeout: 3000
      })
    },
    MSGCODE_PARAMETER_EX (vuex, msg) {
      Notify.create({
        message: msg,
        color: 'negative',
        icon: 'error_outline',
        position: 'top-right',
        timeout: 3000
      })
    }
  },
  actions: {

  }
}
